describe('Google demo test for Mocha', function() {

  describe('with Nightwatch', function() {

    before(function(client, done) {
      done();
    });

    after(function(client, done) {
      client.end(function() {
        done();
      });
    });

    afterEach(function(client, done) {
      done();
    });

    beforeEach(function(client, done) {
      done();
    });

    it('uses BDD to run the Google simple test', function(client) {
      client
        .url('https://www.baidu.com')
        .expect.element('body').to.be.present.before(1000);

      client.setValue('#kw', ['衷于栖', client.Keys.ENTER])
        .pause(3000)
        .assert.containsText('#wrapper_wrapper', '衷于栖');
    });
  });
});